/* 该文件时Vue中的路由器文件，路由器管理着所有路由 */
import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from '../pages/Home.vue'
import Home2 from '../pages/Home.vue'
import About from '../pages/About.vue'

Vue.use(VueRouter);

const router = new VueRouter({
    routes:[
        {
            path:'/home',
            components:{
                h1:Home,
                h2:Home2
            }
        },
        {
            path:'/about',
            component:About
        },
    ],
});

export default router;